#include "EditorSideBarModel.h"



int64_t REditorSideBarModel::GetAbilitysNum() const
{
    return Abilitys.Num();
}

TSharedObjectPtr<REditorAbilityModel> REditorSideBarModel::GetAbility(int64_t Index) const
{
    return Abilitys[Index];
}

void REditorSideBarModel::InsertAbility(int64_t Index, TSharedObjectPtr<REditorAbilityModel> InAbility)
{
    Abilitys.Insert(Index, InAbility);
    OnAbilityAdded.ExecuteIfBound(Index, InAbility);
}

void REditorSideBarModel::RemoveAbility(int64_t Index)
{
    Abilitys.RemoveAt(Index);
    OnAbilityRemoved.ExecuteIfBound(Index);
}
